package cn.ggcms.cms.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer id;
	private UserType userType;
	private String userName;
	private String password;
	private Date regTime;
	private String email;
	private String sex;
	private String companyName;
	private String qq;
	private String phone;
	private String address;
	private Date birthday;
	private String trade;
	private String problem;
	private String answer;
	private Integer integral;
	private Set messageses = new HashSet(0);
	private Set comments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(UserType userType, String userName, String password,
			Date regTime, String email, String sex) {
		this.userType = userType;
		this.userName = userName;
		this.password = password;
		this.regTime = regTime;
		this.email = email;
		this.sex = sex;
	}

	/** full constructor */
	public Users(UserType userType, String userName, String password,
			Date regTime, String email, String sex, String companyName,
			String qq, String phone, String address, Date birthday,
			String trade, String problem, String answer, Integer integral,
			Set messageses, Set comments) {
		this.userType = userType;
		this.userName = userName;
		this.password = password;
		this.regTime = regTime;
		this.email = email;
		this.sex = sex;
		this.companyName = companyName;
		this.qq = qq;
		this.phone = phone;
		this.address = address;
		this.birthday = birthday;
		this.trade = trade;
		this.problem = problem;
		this.answer = answer;
		this.integral = integral;
		this.messageses = messageses;
		this.comments = comments;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public UserType getUserType() {
		return this.userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getRegTime() {
		return this.regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getTrade() {
		return this.trade;
	}

	public void setTrade(String trade) {
		this.trade = trade;
	}

	public String getProblem() {
		return this.problem;
	}

	public void setProblem(String problem) {
		this.problem = problem;
	}

	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getIntegral() {
		return this.integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public Set getMessageses() {
		return this.messageses;
	}

	public void setMessageses(Set messageses) {
		this.messageses = messageses;
	}

	public Set getComments() {
		return this.comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

}